(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},18967,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return w},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return y},ST:function(){return m},WEB_VITALS:function(){return s},execOnce:function(){return a},getDisplayName:function(){return h},getLocationOrigin:function(){return c},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return O}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function l(){let{href:e}=window.location,t=c();return e.substring(t.length)}function h(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Object.defineProperty(Error(`"${h(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let y="u">typeof performance,m=y&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function O(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return u},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});function s(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,a(e));else t.set(n,a(r));return t}function u(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},14272,e=>{"use strict";var t=e.i(40143),n=e.i(88587),r=e.i(36553),i=class extends n.Removable{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=(0,r.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let i="pending"===this.state.status,s=!this.#r.canStart();try{if(i)t();else{this.#i({type:"pending",variables:e,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:s})}let r=await this.#r.start();return await this.#n.config.onSuccess?.(r,e,this.state.context,this,n),await this.options.onSuccess?.(r,e,this.state.context,n),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(r,null,e,this.state.context,n),this.#i({type:"success",data:r}),r}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:"error",error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",0,i,"getDefaultState",0,s])},76668,e=>{"use strict";let t="b12_internal_nav",n=["/","/home"];function r(e){let t=e.split("#")[0]||e;return n.includes(t)}e.s(["consumeInternalNavigation",0,function(){let e="1"===sessionStorage.getItem(t);return sessionStorage.removeItem(t),e},"isDirectAccessPath",0,function(e){return r(e)},"isHomePath",0,r,"markInternalNavigation",0,function(){sessionStorage.setItem(t,"1")}])},8341,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},19083,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return l},htmlEscapeJsonString:function(){return c}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},u=/[&"'<>]/g;function c(e){return e.replace(a,e=>s[e])}function l(e){return e.replace(u,e=>o[e])}},79520,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return w},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return b}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(55682),a=e.r(90809),o=e.r(43476),u=s._(e.r(74080)),c=a._(e.r(71645)),l=e.r(42732),h=e.r(22737),f=e.r(8341),d=e.r(19083),p=new Map,y=new Set,m=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:a="",strategy:o="afterInteractive",onError:c,stylesheets:l}=e,f=n||t;if(f&&y.has(f))return;if(p.has(t)){y.add(f),p.get(t).then(r,c);return}let d=()=>{i&&i(),y.add(f)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),r&&r.call(this,t),d()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});s?(m.innerHTML=s.__html||"",d()):a?(m.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",d()):t&&(m.src=t,p.set(t,g)),(0,h.setAttributesFromProps)(m,e),"worker"===o&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",o),l&&(e=>{if(u.default.preinit)return e.forEach(e=>{u.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(l),document.body.appendChild(m)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>m(e))}):m(e)}function b(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");y.add(t)})}function v(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:s="afterInteractive",onError:a,stylesheets:h,...p}=e,{updateScripts:g,scripts:b,getIsSsr:v,appDir:w,nonce:C}=(0,c.useContext)(l.HeadManagerContext);C=p.nonce||C;let O=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||n;O.current||(i&&e&&y.has(e)&&i(),O.current=!0)},[i,t,n]);let P=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!P.current){if("afterInteractive"===s)m(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>m(e))}));P.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(b[s]=(b[s]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:a,...p,nonce:C}]),g(b)):v&&v()?y.add(t||n):v&&!v()&&m({...e,nonce:C})),w){if(h&&h.forEach(e=>{u.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!n)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:C,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return u.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:C,crossOrigin:p.crossOrigin}:{as:"script",nonce:C,crossOrigin:p.crossOrigin}),(0,o.jsx)("script",{nonce:C,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,d.htmlEscapeJsonString)(JSON.stringify([n,{...p,id:t}]))})`}});"afterInteractive"===s&&n&&u.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:C,crossOrigin:p.crossOrigin}:{as:"script",nonce:C,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let w=v;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},3303,(e,t,n)=>{t.exports=e.r(79520)},21079,94373,e=>{"use strict";e.i(47167);var t=e.i(43476),n=e.i(3303),r=e.i(71645);function i(){return`${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function s(e){if("u"{})}catch{}}e.s(["genEventId",0,i,"getFbBrowserIds",0,a,"pixelTrack",0,o,"trackDual",0,c],94373);var l=e.i(85149);let h="1119890547038772";e.s(["MetaPixel",0,function(){return(0,r.useEffect)(()=>{let e=window.setTimeout(()=>{c("PageView"),c("ViewContent",{content_name:l.META_PRODUCT.contentName,content_type:"product",value:l.META_PRODUCT.value,currency:l.META_PRODUCT.currency})},400);return()=>window.clearTimeout(e)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{id:"meta-pixel",strategy:"lazyOnload",children:` !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '${h}'); `}),(0,t.jsx)("noscript",{children:(0,t.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:`https://www.facebook.com/tr?id=${h}&ev=PageView&noscript=1`,alt:""})})]})},"trackMetaEvent",0,function(e,t,n){"fbq"in window&&window.fbq("track",e,t,n)}],21079)},18791,e=>{"use strict";var t=e.i(71645);e.s(["DevToolsGuard",0,function(){return(0,t.useEffect)(()=>{let e=e=>{e.preventDefault()},t=e=>{(function(e){let t=e.key.toLowerCase();if("f12"===t)return!0;let n=e.ctrlKey||e.metaKey;return!!(n&&e.shiftKey&&["i","j","c","k"].includes(t)||n&&!e.shiftKey&&"u"===t||e.metaKey&&e.altKey&&["i","j","c","u"].includes(t))})(e)&&(e.preventDefault(),e.stopPropagation())};return document.addEventListener("contextmenu",e),document.addEventListener("keydown",t,!0),()=>{document.removeEventListener("contextmenu",e),document.removeEventListener("keydown",t,!0)}},[]),null}])},16088,e=>{"use strict";var t=e.i(71645),n=e.i(18566),r=e.i(76668);function i(e){return e.startsWith("/admin")}e.s(["UrlNavigationGuard",0,function(){let e=(0,n.usePathname)(),s=(0,n.useRouter)();return(0,t.useEffect)(()=>{i(e)||(0,r.consumeInternalNavigation)()||(0,r.isDirectAccessPath)(e)||s.replace("/home")},[e,s]),(0,t.useEffect)(()=>{i(e)},[e]),(0,t.useEffect)(()=>{if(i(e))return;let t=e=>{let t=e.target.closest("a");if(!t)return;let n=t.getAttribute("href");if(!(!n||n.startsWith("#")||n.startsWith("tel:")||n.startsWith("mailto:")))try{new URL(t.href,window.location.origin).origin===window.location.origin&&(0,r.markInternalNavigation)()}catch{}};return document.addEventListener("click",t,!0),()=>document.removeEventListener("click",t,!0)},[e]),null}])},77255,e=>{"use strict";var t=e.i(43476),n=e.i(46696);e.s(["AppProviders",0,function({children:e}){return(0,t.jsxs)(t.Fragment,{children:[e,(0,t.jsx)(n.Toaster,{richColors:!0,position:"top-center"})]})}])},65018,e=>{"use strict";var t=e.i(43476),n=e.i(19273),r=e.i(86491),i=e.i(40143),s=e.i(15823),a=class extends s.Subscribable{constructor(e={}){super(),this.config=e,this.#s=new Map}#s;build(e,t,i){let s=t.queryKey,a=t.queryHash??(0,n.hashQueryKeyByOptions)(s,t),o=this.get(a);return o||(o=new r.Query({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.#s.has(e.queryHash)||(this.#s.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#s.get(e.queryHash);t&&(e.destroy(),t===e&&this.#s.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#s.get(e)}getAll(){return[...this.#s.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n.matchQuery)(e,t)):t}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o=e.i(14272),u=s,c=class extends u.Subscribable{constructor(e={}){super(),this.config=e,this.#a=new Set,this.#o=new Map,this.#u=0}#a;#o;#u;build(e,t,n){let r=new o.Mutation({client:e,mutationCache:this,mutationId:++this.#u,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#a.add(e);let t=l(e);if("string"==typeof t){let n=this.#o.get(t);n?n.push(e):this.#o.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#a.delete(e)){let t=l(e);if("string"==typeof t){let n=this.#o.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#o.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let n=this.#o.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#o.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#a.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#a.clear(),this.#o.clear()})}getAll(){return Array.from(this.#a)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.matchMutation)(e,t))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.noop))))}};function l(e){return e.options.scope?.id}var h=e.i(75555),f=e.i(14448),d=class{#c;#n;#l;#h;#f;#d;#p;#y;constructor(e={}){this.#c=e.queryCache||new a,this.#n=e.mutationCache||new c,this.#l=e.defaultOptions||{},this.#h=new Map,this.#f=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#p=h.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#c.onFocus())}),this.#y=f.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#c.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#p?.(),this.#p=void 0,this.#y?.(),this.#y=void 0)}isFetching(e){return this.#c.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#c.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#c.build(this,t),i=r.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#c.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.defaultQueryOptions({queryKey:e}),s=this.#c.get(i.queryHash),a=s?.state.data,o=(0,n.functionalUpdate)(t,a);if(void 0!==o)return this.#c.build(this,i).setData(o,{...r,manual:!0})}setQueriesData(e,t,n){return i.notifyManager.batch(()=>this.#c.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#c.get(t.queryHash)?.state}removeQueries(e){let t=this.#c;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#c;return i.notifyManager.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(i.notifyManager.batch(()=>this.#c.findAll(e).map(e=>e.cancel(r)))).then(n.noop).catch(n.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#c.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#c.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#c.build(this,t);return r.isStaleByTime((0,n.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.noop).catch(n.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.noop).catch(n.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return f.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#c}getMutationCache(){return this.#n}getDefaultOptions(){return this.#l}setDefaultOptions(e){this.#l=e}setQueryDefaults(e,t){this.#h.set((0,n.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#h.values()],r={};return t.forEach(t=>{(0,n.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#f.set((0,n.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#f.values()],r={};return t.forEach(t=>{(0,n.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#l.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#l.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#c.clear(),this.#n.clear()}},p=e.i(12598),y=e.i(71645);e.s(["QueryProvider",0,function({children:e}){let[n]=(0,y.useState)(()=>new d({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return(0,t.jsx)(p.QueryClientProvider,{client:n,children:e})}],65018)},1569,e=>{"use strict";var t=e.i(43476),n=e.i(55487),r=e.i(64645);let i=(0,r.createSlice)({name:"auth",initialState:{user:null,token:null},reducers:{setCredentials(e,t){e.user=t.payload.user,e.token=t.payload.token},clearCredentials(e){e.user=null,e.token=null}}}),{setCredentials:s,clearCredentials:a}=i.actions,o=i.reducer,u=(0,r.configureStore)({reducer:{auth:o}});e.s(["ReduxProvider",0,function({children:e}){return(0,t.jsx)(n.Provider,{store:u,children:e})}],1569)}]);